/* Apple HIG Premium Design System for SmartGestor Vendedor Dashboard */

.ig-feed-container {
  background-color: #f5f5f7; /* Apple signature light gray background */
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Header */
.ig-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  height: 56px;
}

.ig-logo {
  font-size: 20px;
  font-weight: 700;
  color: #1d1d1f;
  text-decoration: none;
  letter-spacing: -0.5px;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ig-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ig-action-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.03);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.ig-action-btn:active {
  transform: scale(0.95);
  background-color: rgba(0, 0, 0, 0.08);
}

/* Stories Bar as an Apple Card */
.apple-stories-card {
  background: #ffffff;
  border-radius: 0 !important; /* Sem arredondamento na barra lateral */
  margin: 0 !important; /* Sem margens nas laterais */
  padding: 12px 16px;
  box-shadow: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-top: none;
  border-left: none;
  border-right: none;
}

.ig-stories-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ig-stories-container::-webkit-scrollbar {
  display: none;
}

.ig-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  width: 78px;
}

.ig-story-avatar-wrapper {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E4BFF 0%, #5E82FF 100%) !important; /* Degradê azul da sidebar */
}

.ig-story-avatar-wrapper.own-story {
  background: none;
  border: 1px dashed #d2d2d7;
  padding: 0;
}

.ig-story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #ffffff;
  object-fit: cover;
  background-color: #f5f5f7;
}

.ig-story-avatar-wrapper.own-story .ig-story-avatar {
  border: none;
}

.ig-story-plus {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background-color: #0071e3;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
}

.ig-story-name {
  font-size: 11px;
  font-weight: 500;
  color: #86868b;
  text-align: center;
  margin-top: 6px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Apple Feed Post Card */
.apple-post-card {
  background: #ffffff;
  border-radius: 12px !important; /* Leve arredondamento do card */
  margin: 8px 0 16px 0;
  padding: 0 0 16px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-left: none;
  border-right: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  overflow: hidden !important; /* Respeita o arredondamento nos cantos */
}

.apple-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 12px 16px;
}

.ig-post-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ig-post-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  object-fit: cover;
  background-color: #f5f5f7;
}

.ig-post-user-meta {
  display: flex;
  flex-direction: column;
}

.ig-post-username {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}

.ig-post-location {
  font-size: 11px;
  color: #86868b;
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ig-post-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #86868b;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.ig-post-more-btn:hover {
  background-color: #f5f5f7;
}

/* Image Container */
.apple-post-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 !important; /* Proporção 1:1 exata do Instagram */
  background-color: #f5f5f7;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 14px;
}

.apple-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.apple-post-image:hover {
  transform: scale(1.02);
}

/* Bento Metrics Grid */
.apple-metrics-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 16px !important;
}

.apple-metric-card {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  background: #f5f5f7;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.01);
  transition: transform 0.2s ease, background 0.2s ease;
  box-sizing: border-box !important;
}

.apple-metric-card:active {
  transform: scale(0.97);
  background-color: #e8e8ed;
}

.apple-metric-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-metric-icon-box.production {
  background: rgba(0, 113, 227, 0.08); /* Apple Blue */
  color: #0071e3;
}

.apple-metric-icon-box.rating {
  background: rgba(255, 159, 10, 0.08); /* Apple Orange */
  color: #ff9f0a;
}

.apple-metric-info {
  display: flex;
  flex-direction: column;
}

.apple-metric-label {
  font-size: 9px;
  color: #86868b;
  text-transform: uppercase;
  font-weight: 650;
  letter-spacing: 0.5px;
}

.apple-metric-value {
  font-size: 13px;
  font-weight: 700;
  color: #1d1d1f;
  margin-top: 1px;
}

/* Caption and Client Comment Section */
.apple-caption-section {
  font-size: 13px;
  line-height: 1.45;
  color: #1d1d1f;
  margin-bottom: 10px;
  padding: 0 16px;
  box-sizing: border-box;
}

.apple-caption-username {
  font-weight: 600;
  margin-right: 6px;
  color: #1d1d1f;
}

.apple-feedback-box {
  background: rgba(0, 113, 227, 0.02);
  border-radius: 12px;
  padding: 12px 14px;
  border-left: 3px solid #0071e3;
  margin: 6px 16px 0 16px;
  box-sizing: border-box;
}

.apple-feedback-header {
  font-size: 11px;
  font-weight: 600;
  color: #0071e3;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.apple-feedback-text {
  font-size: 13px;
  color: #3a3a3c;
  line-height: 1.45;
  font-style: italic;
}

.apple-post-time {
  font-size: 11px;
  color: #86868b;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Image Carousel */
.apple-carousel-container {
  display: flex !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: none !important; /* Hide scrollbar Firefox */
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.apple-carousel-container::-webkit-scrollbar {
  display: none !important; /* Hide scrollbar Chrome/Safari */
}

.apple-carousel-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  height: 100% !important;
  scroll-snap-align: start !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* Dots wrapper */
.apple-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  margin-bottom: 4px;
}

.apple-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #d2d2d7;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.apple-carousel-dot.active {
  background-color: #0071e3; /* Apple active blue dot */
  transform: scale(1.2);
}

/* Custom styling override on Vendedor Inicio */
#page-container:has(.ig-feed-container),
#page-container:has(.ig-profile-container) {
  padding: 0 !important;
  background-color: #f5f5f7 !important;
}

/* Instagram Profile Grid */
.ig-profile-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 3px !important;
  padding: 3px 0 60px 0 !important;
  background-color: #ffffff !important;
}

.ig-grid-item {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 !important;
  background-color: #f5f5f7 !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.ig-grid-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.2s ease !important;
}

.ig-grid-item:hover img {
  transform: scale(1.04) !important;
}

.ig-grid-carousel-icon {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  background: rgba(0, 0, 0, 0.4) !important;
  padding: 4px !important;
  border-radius: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(2px) !important;
}

.no-scrollbar::-webkit-scrollbar {
  display: none !important;
}
.no-scrollbar {
  scrollbar-width: none !important;
}

/* Instagram Profile View Container */
.ig-profile-container {
  background: #ffffff !important;
  min-height: 100vh !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  padding-bottom: 80px !important;
}

/* Profile Header Row */
.ig-profile-header-row {
  padding: 20px 16px 10px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
}

/* Profile Avatar */
.ig-profile-avatar-circle {
  position: relative !important;
  width: 84px !important;
  height: 84px !important;
  border-radius: 50% !important;
  padding: 3px !important;
  background: #e8e8ed !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.ig-profile-avatar-circle img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #ffffff !important;
}

/* Profile Stats */
.ig-profile-stats-col {
  display: flex !important;
  flex: 1 !important;
  justify-content: space-around !important;
  text-align: center !important;
}

.ig-profile-stat-number {
  display: block !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1d1d1f !important;
}

.ig-profile-stat-label {
  font-size: 11px !important;
  color: #86868b !important;
}

/* Profile Bio */
.ig-profile-bio-section {
  padding: 0 16px 12px 16px !important;
}

.ig-profile-bio-name {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1d1d1f !important;
}

.ig-profile-bio-username {
  font-size: 13px !important;
  color: #86868b !important;
  display: block !important;
  margin-top: 1px !important;
}

.ig-profile-bio-role {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #3a3a3c !important;
  display: block !important;
  margin-top: 4px !important;
}

.ig-profile-bio-details {
  margin: 6px 0 0 0 !important;
  font-size: 13px !important;
  color: #1d1d1f !important;
  line-height: 1.4 !important;
}

/* Follow/Message Actions */
.ig-profile-actions-row {
  padding: 0 16px 16px 16px !important;
  display: flex !important;
  gap: 8px !important;
}

.ig-profile-btn-primary {
  flex: 1 !important;
  border: none !important;
  background: #0071e3 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 0 !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  text-align: center !important;
}

.ig-profile-btn-primary:active {
  opacity: 0.8 !important;
}

.ig-profile-btn-secondary {
  flex: 1 !important;
  border: none !important;
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 0 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  text-align: center !important;
}

.ig-profile-btn-secondary:active {
  background-color: #e8e8ed !important;
}

/* Highlights horizontal row */
.ig-profile-highlights-row {
  padding: 10px 0 !important;
  border-top: 1px solid rgba(0,0,0,0.05) !important;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  overflow-x: auto !important;
  display: flex !important;
  gap: 18px !important;
  padding-left: 16px !important;
}

.ig-highlight-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 62px !important;
  flex-shrink: 0 !important;
}

.ig-highlight-circle {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  border: 1px solid #d2d2d7 !important;
  padding: 3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
}

.ig-highlight-inner {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  background: #f5f5f7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #86868b !important;
}

.ig-highlight-label {
  font-size: 11px !important;
  color: #1d1d1f !important;
  margin-top: 4px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Profile Tabs grid */
.ig-profile-tabs {
  display: flex !important;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  text-align: center !important;
  background: #ffffff !important;
}

.ig-profile-tab-item {
  flex: 1 !important;
  padding: 12px 0 !important;
  color: #86868b !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: center !important;
  transition: color 0.2s ease !important;
}

.ig-profile-tab-item.active {
  border-bottom: 1.5px solid #1d1d1f !important;
  color: #1d1d1f !important;
}

/* Instagram Story Overlay */
.ig-story-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: #1a1a1a !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  padding: 16px 0 !important;
  color: #ffffff !important;
}

/* Stories Progress Indicator */
.ig-story-progress-container {
  display: flex !important;
  gap: 6px !important;
  padding: 10px 16px 4px 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ig-story-progress-bar {
  flex: 1 !important;
  height: 3px !important;
  background-color: rgba(255, 255, 255, 0.35) !important;
  border-radius: 2px !important;
  overflow: hidden !important;
}

.ig-story-progress-fill {
  height: 100% !important;
  width: 0%;
  background-color: #ffffff !important;
  transition: width 0.05s linear;
}

.ig-story-progress-fill.completed {
  width: 100%;
}

/* Story Header */
.ig-story-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  z-index: 10 !important;
}

.ig-story-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.ig-story-header-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background-color: #f5f5f7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: #1d1d1f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.ig-story-header-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
}

.ig-story-header-time {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  margin-left: 4px !important;
}

.ig-story-header-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.ig-story-close-btn {
  background: none !important;
  border: none !important;
  color: #ffffff !important;
  cursor: pointer !important;
  padding: 4px !important;
  display: flex !important;
  align-items: center !important;
}

/* Story Content Viewport */
.ig-story-viewport {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
}

.ig-story-content-image {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.ig-story-content-text-fallback {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #f5efe6 !important; /* Cor bege pastel creme conforme imagem */
}

.ig-story-large-text {
  font-size: 38px !important;
  font-weight: 650 !important;
  color: #4a4a4a !important;
  letter-spacing: 6px !important;
  font-family: -apple-system, sans-serif !important;
  text-transform: uppercase !important;
}

/* Touch navigation areas */
.ig-story-touch-left,
.ig-story-touch-right {
  position: absolute !important;
  top: 0 !important;
  width: 25% !important;
  height: 100% !important;
  z-index: 5 !important;
  cursor: pointer !important;
}

.ig-story-touch-left {
  left: 0 !important;
}

.ig-story-touch-right {
  right: 0 !important;
}

/* Story Footer Input */
.ig-story-footer {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 8px 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  z-index: 10 !important;
}

.ig-story-input-box {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 20px !important;
  padding: 8px 16px !important;
}

.ig-story-input {
  background: none !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 13px !important;
  width: 100% !important;
  outline: none !important;
}

.ig-story-input::placeholder {
  color: rgba(255, 255, 255, 0.8) !important;
}

.ig-story-footer-icons {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  color: #ffffff !important;
}

/* Navigation arrows for Feed Post Carousels */
.apple-carousel-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  color: #1d1d1f !important;
  transition: opacity 0.2s, background-color 0.2s !important;
  opacity: 0;
}

.apple-post-image-wrapper:hover .apple-carousel-arrow {
  opacity: 1;
}

.apple-carousel-arrow:active {
  background: #ffffff !important;
}

.apple-carousel-arrow.left {
  left: 8px !important;
}

.apple-carousel-arrow.right {
  right: 8px !important;
}

/* Navigation arrows for Stories Overlay */
.ig-story-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  cursor: pointer !important;
  z-index: 10 !important;
  transition: background-color 0.2s !important;
}

.ig-story-arrow:hover {
  background: rgba(255, 255, 255, 0.4) !important;
}

.ig-story-arrow.left {
  left: 16px !important;
}

.ig-story-arrow.right {
  right: 16px !important;
}

@media (hover: none) {
  .apple-carousel-arrow {
    opacity: 0.8 !important;
  }
  .ig-story-arrow {
    opacity: 0.8 !important;
  }
}

/* Feed Posts Spacing to prevent navbar overlap */
.ig-feed-posts {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding-bottom: 96px !important; /* Espaço extra generoso para a barra inferior flutuante */
}

/* ============================================= */
/* Coupon Cards — Aba Clientes (Vendedor)        */
/* ============================================= */

/* Container principal dos cards de cupons */
.wallet-cards-container {
  padding: 8px 16px 96px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card individual — estilo cupom/tíquete destacado */
.coupon-card {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 135px;
  border-radius: 20px;
  overflow: hidden;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
  animation: couponCardFadeIn 0.4s ease-out both;
}

.coupon-card:active {
  transform: scale(0.98);
}

@keyframes couponCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delay de animação por card */
.coupon-card:nth-child(1) { animation-delay: 0.05s; }
.coupon-card:nth-child(2) { animation-delay: 0.10s; }
.coupon-card:nth-child(3) { animation-delay: 0.15s; }
.coupon-card:nth-child(4) { animation-delay: 0.20s; }
.coupon-card:nth-child(5) { animation-delay: 0.25s; }
.coupon-card:nth-child(6) { animation-delay: 0.30s; }

/* 6 variantes de degradê premium baseados na imagem anexa */
.coupon-card.gradient-1 {
  background: linear-gradient(135deg, #FF5E3A 0%, #FFA751 100%);
  box-shadow: 0 8px 24px rgba(255, 94, 58, 0.25);
}
.coupon-card.gradient-2 {
  background: linear-gradient(135deg, #0d322c 0%, #171c24 100%);
  box-shadow: 0 8px 24px rgba(13, 50, 44, 0.30);
}
.coupon-card.gradient-3 {
  background: linear-gradient(135deg, #1b3d75 0%, #152445 100%);
  box-shadow: 0 8px 24px rgba(27, 61, 117, 0.25);
}
.coupon-card.gradient-4 {
  background: linear-gradient(135deg, #1d723a 0%, #114b24 100%);
  box-shadow: 0 8px 24px rgba(29, 114, 58, 0.25);
}
.coupon-card.gradient-5 {
  background: linear-gradient(135deg, #6c2575 0%, #3e1245 100%);
  box-shadow: 0 8px 24px rgba(108, 37, 117, 0.25);
}
.coupon-card.gradient-6 {
  background: linear-gradient(135deg, #2c3e50 0%, #0f171e 100%);
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.25);
}

/* Mesmos degradês aplicados ao header do modal full-screen */
.coupon-modal-header.gradient-1 {
  background: linear-gradient(135deg, #FF5E3A 0%, #FFA751 100%);
}
.coupon-modal-header.gradient-2 {
  background: linear-gradient(135deg, #0d322c 0%, #171c24 100%);
}
.coupon-modal-header.gradient-3 {
  background: linear-gradient(135deg, #1b3d75 0%, #152445 100%);
}
.coupon-modal-header.gradient-4 {
  background: linear-gradient(135deg, #1d723a 0%, #114b24 100%);
}
.coupon-modal-header.gradient-5 {
  background: linear-gradient(135deg, #6c2575 0%, #3e1245 100%);
}
.coupon-modal-header.gradient-6 {
  background: linear-gradient(135deg, #2c3e50 0%, #0f171e 100%);
}

/* Lado esquerdo (Main Content) */
.coupon-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Rótulo superior sutil ("CLIENTE") */
.coupon-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
}

/* Nome do cliente */
.coupon-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Subtítulo / Bairro */
.coupon-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 180px;
}

/* Rodapé esquerdo: pílula e avatares */
.coupon-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

/* Pílula/Badge com bordas arredondadas e fundo branco */
.coupon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1a1a1a;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.coupon-badge i,
.coupon-badge svg {
  width: 12px !important;
  height: 12px !important;
  color: #555555 !important;
}

/* Linha de corte pontilhada */
.coupon-divider {
  position: relative;
  width: 0;
  border-left: 2px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Entalhe semicircular superior na dobra */
.coupon-notch-top {
  position: absolute;
  top: -8px;
  left: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #f5f5f7; /* Mesma cor da página para parecer vazado */
  z-index: 10;
}

/* Entalhe semicircular inferior na dobra */
.coupon-notch-bottom {
  position: absolute;
  bottom: -8px;
  left: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #f5f5f7;
  z-index: 10;
}

/* Lado direito (Ticket Stub) */
.coupon-stub {
  width: 95px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05); /* Leve variação do stub */
}

/* Valor principal no stub */
.coupon-value {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  text-align: center;
  z-index: 2;
  letter-spacing: -0.5px;
}

.coupon-value-unit {
  font-size: 11px;
  font-weight: 600;
  display: block;
  margin-top: 4px;
  opacity: 0.85;
}

/* Marca d'água de fundo (ícone grande semi-transparente) */
.coupon-stub-bg-icon {
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-size: 80px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  font-family: -apple-system, sans-serif;
  user-select: none;
  z-index: 1;
}

/* Estilos de avatares mantidos para compatibilidade com o JS */
.wallet-card-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wallet-card-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.25);
  background-size: cover;
  background-position: center;
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.wallet-card-avatar:first-child {
  margin-left: 0;
}

.wallet-card-avatar-extra {
  background-color: rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(4px);
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
}

/* Override para #page-container com wallet-cards-container */
#page-container:has(.wallet-cards-container) {
  padding: 0 !important;
  background-color: #f5f5f7 !important;
}

/* ============================================= */
/* Premium Coupon Modal — Full-Screen Sheet       */
/* ============================================= */

/* Overlay escuro full-screen */
.coupon-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.coupon-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Container principal — sheet que sobe de baixo */
.coupon-modal-sheet {
  width: 100%;
  max-width: 100%;
  max-height: 92vh;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

.coupon-modal-overlay.active .coupon-modal-sheet {
  transform: translateY(0);
}

/* Handle de arrastar (indicador visual iOS) */
.coupon-modal-handle {
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
  margin: 10px auto 0 auto;
  flex-shrink: 0;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

/* Header com o degradê do card */
.coupon-modal-header {
  position: relative;
  padding: 32px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  flex-shrink: 0;
}

/* Botão de fechar (X) */
.coupon-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  color: #ffffff;
  font-size: 20px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 30;
  line-height: 1;
}

.coupon-modal-close:active {
  background: rgba(255, 255, 255, 0.4);
}

.coupon-modal-header-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.coupon-modal-header-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 4px;
}

.coupon-modal-header-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Divisória picotada horizontal com notches */
.coupon-modal-tear {
  position: relative;
  height: 0;
  flex-shrink: 0;
}

.coupon-modal-tear::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  border-top: 2px dashed rgba(0, 0, 0, 0.08);
}

/* Notches (semicírculos nas laterais) */
.coupon-modal-tear-notch {
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 5;
}

.coupon-modal-tear-notch.left {
  left: -10px;
}

.coupon-modal-tear-notch.right {
  right: -10px;
}

/* Body scrollável */
.coupon-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  -webkit-overflow-scrolling: touch;
}

/* Stats em grade */
.coupon-modal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.coupon-modal-stat-card {
  background: #f5f5f7;
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.coupon-modal-stat-label {
  font-size: 10px;
  color: #8e8e93;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 6px;
}

.coupon-modal-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #1c1c1e;
  line-height: 1;
}

.coupon-modal-stat-value .stat-unit {
  font-size: 12px;
  font-weight: 600;
  color: #636366;
  margin-left: 2px;
}

/* Seções de informação */
.coupon-modal-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.coupon-modal-info-label {
  font-size: 10px;
  color: #8e8e93;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.coupon-modal-info-value {
  font-size: 15px;
  font-weight: 600;
  color: #1c1c1e;
  line-height: 1.4;
}

.coupon-modal-info-sub {
  font-size: 13px;
  color: #8e8e93;
  margin-top: 1px;
}

/* Separador fino interno */
.coupon-modal-separator {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 2px 0;
}

/* Lista de Padeiros */
.coupon-modal-bakers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coupon-modal-baker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f5f5f7;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.coupon-modal-baker-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  color: #ffffff;
}

.coupon-modal-baker-name {
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1e;
}

.coupon-modal-baker-empty {
  font-size: 13px;
  color: #8e8e93;
  text-align: center;
  padding: 8px 0;
}

/* Footer fixo com botão */
.coupon-modal-footer {
  padding: 12px 24px 28px 24px;
  flex-shrink: 0;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.coupon-modal-footer-btn {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: none;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
  letter-spacing: 0.2px;
}

.coupon-modal-footer-btn:active {
  opacity: 0.85;
  transform: scale(0.98);
}

/* Safe area para bottom (iPhone com notch) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .coupon-modal-footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
}

/* ============================================= */
/* Wallet Clara — Nova Home do Vendedor          */
/* ============================================= */

.vwallet-screen {
  background: #f8f9fc;
  min-height: 100vh;
  padding-bottom: 96px;
}

.vwallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 10px 24px;
}

.vwallet-user-info {
  display: flex;
  flex-direction: column;
}

.vwallet-greeting {
  font-size: 14px;
  font-weight: 500;
  color: #8e8e93;
}

.vwallet-name {
  font-size: 22px;
  font-weight: 800;
  color: #1c1c1e;
  margin-top: 2px;
}

.vwallet-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E4BFF 0%, #5E82FF 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(30, 75, 255, 0.15);
}

.vwallet-balance-card {
  padding: 10px 24px 20px 24px;
}

.vwallet-balance-label {
  font-size: 13px;
  font-weight: 600;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vwallet-balance-row {
  display: flex;
  align-items: baseline;
  margin-top: 6px;
}

.vwallet-balance-currency {
  font-size: 26px;
  font-weight: 800;
  color: #1c1c1e;
  margin-right: 4px;
}

.vwallet-balance-value {
  font-size: 40px;
  font-weight: 900;
  color: #1c1c1e;
  letter-spacing: -1px;
}

.vwallet-balance-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #34c759;
  margin-top: 8px;
}

.vwallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 24px;
  margin-bottom: 24px;
}

.vwallet-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  font-size: 14px;
  font-weight: 700;
  color: #1c1c1e;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.vwallet-action-btn:active {
  transform: scale(0.97);
  background: #f2f2f7;
}

.vwallet-action-btn i {
  color: #1E4BFF;
  width: 18px;
  height: 18px;
}

/* Card Destaque - substitui Invite a Friend */
.vwallet-highlight-card {
  margin: 0 24px 24px 24px;
  padding: 20px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.vwallet-highlight-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 75, 255, 0.2) 0%, transparent 70%);
}

.vwallet-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 30px;
  background: rgba(30, 75, 255, 0.25);
  border: 1px solid rgba(30, 75, 255, 0.35);
  color: #5e82ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.vwallet-highlight-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #ffffff;
}

.vwallet-highlight-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.vwallet-highlight-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  background: #ffffff;
  color: #1c1c1e;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.vwallet-highlight-btn:active {
  opacity: 0.9;
}

.vwallet-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #1c1c1e;
  padding: 0 24px 8px 24px;
}
